package com.example.ele_guarantee_hh_pro.comclass;
import com.cloudcc.deveditor.core.CCObject;
import com.cloudcc.deveditor.core.CCService;
import com.cloudcc.deveditor.core.ServiceResult;
import com.cloudcc.deveditor.core.UserInfo;

import net.sf.json.JSONObject;
/*客户的按钮重定向页面*/
public class testUrl {

    private static CCService cs;

    private UserInfo userInfo;

    public testUrl(UserInfo userInfo) throws Exception{
        cs = new CCService(userInfo);
        this.userInfo = userInfo;
    }

    public JSONObject tiaoz(String id){
        JSONObject jsonObject = new JSONObject();

        String url ="/#/injectionComponent/injectionComponent?page=hhxjyhym&button=Home";
        jsonObject.put("action","redirect");
        jsonObject.put("status","000");
        jsonObject.put("url",url);
        jsonObject.put("mode","now");
        return jsonObject;
    }



    public JSONObject tiaozMap(String id){
        JSONObject jsonObject = new JSONObject();

        String url ="/#/injectionComponent/injectionComponent?page=hhxsdt&button=Home";
        jsonObject.put("action","redirect");
        jsonObject.put("status","000");
        jsonObject.put("url",url);
        jsonObject.put("mode","now");
        return jsonObject;
    }
}
